Integrand size = 21, antiderivative size = 132 \[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\frac {2 E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (e+f x)}}{b f \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}-\frac {2 a \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{b f \sqrt {a+b \sin (e+f x)}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2831, 2742, 2740, 2734, 2732} \[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\frac {2 \sqrt {a+b \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{b f \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}-\frac {2 a \sqrt {\frac {a+b \sin (e+f x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{b f \sqrt {a+b \sin (e+f x)}} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rubi steps \begin{align*} \text {integral}& = \frac {\int \sqrt {a+b \sin (e+f x)} \, dx}{b}-\frac {a \int \frac {1}{\sqrt {a+b \sin (e+f x)}} \, dx}{b} \\ & = \frac {\sqrt {a+b \sin (e+f x)} \int \sqrt {\frac {a}{a+b}+\frac {b \sin (e+f x)}{a+b}} \, dx}{b \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}-\frac {\left (a \sqrt {\frac {a+b \sin (e+f x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (e+f x)}{a+b}}} \, dx}{b \sqrt {a+b \sin (e+f x)}} \\ & = \frac {2 E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (e+f x)}}{b f \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}-\frac {2 a \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{b f \sqrt {a+b \sin (e+f x)}} \\ \end{align*}
Time = 2.57 (sec) , antiderivative size = 94, normalized size of antiderivative = 0.71 \[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=-\frac {2 \left ((a+b) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 b}{a+b}\right )-a \operatorname {EllipticF}\left (\frac {1}{4} (-2 e+\pi -2 f x),\frac {2 b}{a+b}\right )\right ) \sqrt {\frac {a+b \sin (e+f x)}{a+b}}}{b f \sqrt {a+b \sin (e+f x)}} \]
[In]
[Out]
Time = 1.19 (sec) , antiderivative size = 202, normalized size of antiderivative = 1.53
method | result | size |
default | \(-\frac {2 \left (a -b \right ) \sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}\, \sqrt {-\frac {\left (\sin \left (f x +e \right )-1\right ) b}{a +b}}\, \sqrt {-\frac {\left (\sin \left (f x +e \right )+1\right ) b}{a -b}}\, \left (E\left (\sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) a +E\left (\sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b -F\left (\sqrt {\frac {a +b \sin \left (f x +e \right )}{a -b}}, \sqrt {\frac {a -b}{a +b}}\right ) b \right )}{b^{2} \cos \left (f x +e \right ) \sqrt {a +b \sin \left (f x +e \right )}\, f}\) | \(202\) |
risch | \(\text {Expression too large to display}\) | \(1072\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 365, normalized size of antiderivative = 2.77 \[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=-\frac {2 \, \sqrt {2} a \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (f x + e\right ) - 3 i \, b \sin \left (f x + e\right ) - 2 i \, a}{3 \, b}\right ) + 2 \, \sqrt {2} a \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (f x + e\right ) + 3 i \, b \sin \left (f x + e\right ) + 2 i \, a}{3 \, b}\right ) + 3 i \, \sqrt {2} \sqrt {i \, b} b {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (f x + e\right ) - 3 i \, b \sin \left (f x + e\right ) - 2 i \, a}{3 \, b}\right )\right ) - 3 i \, \sqrt {2} \sqrt {-i \, b} b {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (f x + e\right ) + 3 i \, b \sin \left (f x + e\right ) + 2 i \, a}{3 \, b}\right )\right )}{3 \, b^{2} f} \]
[In]
[Out]
\[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\int \frac {\sin {\left (e + f x \right )}}{\sqrt {a + b \sin {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\int { \frac {\sin \left (f x + e\right )}{\sqrt {b \sin \left (f x + e\right ) + a}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\int { \frac {\sin \left (f x + e\right )}{\sqrt {b \sin \left (f x + e\right ) + a}} \,d x } \]
[In]
[Out]
Time = 6.43 (sec) , antiderivative size = 118, normalized size of antiderivative = 0.89 \[ \int \frac {\sin (e+f x)}{\sqrt {a+b \sin (e+f x)}} \, dx=\frac {\left (2\,a\,\mathrm {F}\left (\mathrm {asin}\left (\frac {\sqrt {2}\,\sqrt {1-\sin \left (e+f\,x\right )}}{2}\right )\middle |\frac {2\,b}{a+b}\right )-2\,\left (a+b\right )\,\mathrm {E}\left (\mathrm {asin}\left (\frac {\sqrt {2}\,\sqrt {1-\sin \left (e+f\,x\right )}}{2}\right )\middle |\frac {2\,b}{a+b}\right )\right )\,\sqrt {{\cos \left (e+f\,x\right )}^2}\,\sqrt {\frac {a+b\,\sin \left (e+f\,x\right )}{a+b}}}{b\,f\,\cos \left (e+f\,x\right )\,\sqrt {a+b\,\sin \left (e+f\,x\right )}} \]
[In]
[Out]